package epam.study.oop.stones.parrents;

import epam.study.oop.stones.enums.TypeOfStones;


public abstract class Jewel extends Stone {
    
	private static final long serialVersionUID = 7409606342864025427L;
	
	// the number of edges
	public int edge;
	
	public Jewel(float  _weight) {
		super(_weight);
		typeOfStone = TypeOfStones.JEWEL;	
	}
	
	//calculation of the cost of stone jewelry
	public void calculateCostStoune() {
		cost = (int) Math.round(Math.pow( this.getWeight() , 2) * price * transparency);	
	}
	
}	
